Tests adding existing queries