Fixed the static if in the unit tests.

The third version of ifThrown(delegate, Exception) works even without
the bugfix that enables the second version. Those static ifs now use
the second version instead of the third.