converted to midje testing