Test for query added.