Write test case for ObjectQueryPipe.