remove premature return statement in tests