Easier unit testing of wrapped functions

Fixes #39.