test return statement in switch-case