Start writing unit and integration tests. Put newline at eof
Refactor some fixtures and business logic out of functional test cases and into companion object.