fixed bug in query.c test, was setting a char to an int value