Hide the fact that the expression values are irrelevant for the unit test

clang was complaining that the values generated by the expressions passed to
CPPUNIT_ASSERT_THROW were never used. That is expected since they are
supposed to thrown an exception. Slightly reworking the expression
solved that problem.