xkcd#353?
Added a couple of tests for some utility functions.