Minor fix to libcheck unit test macros

Make sure that the test case count is incremented before the expr
is evaluated.