refactored tests to use midje