Adding tests

We rely on this for our application, and I had some time today so I implemented a really simple set of test for it because, like, tests will set you free. Or something.