Fix tests for classes with preprocessor blocks