Add tests.
Merge pull request #1 from rjackson/add-tests

Add tests.