The test in query.c for grep is now working properly