enable checkstyle for test source directory and fix checkstyle errors