style tests, fix pep8