Tests

I'm using this module as a starting point for something else, so decided to push the tests in case you find them useful