Added test case for closures in QueryExpression.