add queries tests