refactored test cases using midje