WIP: purnam testing with Karma

This commit still needs work, but it's progress based on [https://github.com/purnam/example.purnam.test](https://github.com/purnam/example.purnam.test).