Fixed test for before-select Query Event.