Added test for query binding