Tests Query#Count and Exists