Add unit tests

A bit unnecessary, but can't hurt :)
Merge pull request #3 from clibs/add-tests

Add unit tests