Resolve problem of boundary tests in GRK and GRG