improves test coverage of classtask; also makes pep8 compliant