Add tests for exported functions.
Merge pull request #11 from rrch/master

Add tests for exported functions.