added unit test for #24
add unit tests for #25: switch statement problems
Fixes #25: switch statement errors not properly handled