added test for default branch in switch-case statement