Fixed test on query and bind