Simple tests with `when` guards.