ClassUtilsTest: refactor style of new unit tests

Thanks to Johannes Schindelin for the suggestions.