Module-ify tests
Add the ability to mock functions

Bit of a rip-off of unittest.mock in python 3.3 - then again so is a lot
of this stuff
Add an example from the README to the tests