Test query changed