adapt dangling switch-code test cases to changed error output