Lambda fix and test cases

Unfortunately these tests don't actually fail when you run `make test` since they don't throw any errors, but they are good as reference.

Closes #27.