Test nested if-expressions