robust if else tests