Start fixing up tests.
Fixed up test suite. It's not perfect, but it at least tests something now.
Merge pull request #46 from radiocosmology/fix-tests

Fixed up the test suite