Addition of tests

I've taken your module and added tests and travis-ci integrations.

Not sure if any of this is useful to you.

Great job on this module though, thanks!