(FACT-598) Add unit tests.

No idea if these tests work. Spent half an hour messing with apt-get
and gems and not getting past:

    in `alias_method': undefined method `should' for module
       `RSpec::Matchers::BlockAliases' (NameError)