SERVER-10608 added test cases for exists operator