fixed test cases for GraphQuery