Fixed referential transparency issue with operators captured in a closure and also added missing argument to a test case.