make checkstyle happy and remove test dependencies