Added tests for protoQuery. Keep on Condition