Also check if query string has changed in onChange()
Add tests.