gras: fixed query unit test, added json check