cucumber passing after refactor