Add unit tests for lambda, toLambda, fromLambda