Added more tests for bound query.