add test for if statements with else

Verifies that issue #41 is correctly solved.