bugfix: if tests were being evaluated in dead branches