Initial tests.
Merge pull request #279 from jcushman/dev.tests

Add testing.