Fix conditional compilation of JUnit tests.