Fix checkstyle warnings.
Added log4j 2 maven dependency for tests.