Unfold the ternary conditional operators

The main reason for doing this is to reveal gaps in the test coverage.