Replaced default unit test framework with midje for easier unit testing and mocking