Split test classes and fix checkstyle.