Cleaned tests file to correct all pyflakes and pep8 errors

maybe leave out the star for this line, as I believe they were intended as bullet points?