Cleaned tests file to correct all pyflakes and pep8 errors

Truth be told it was the lazy person's way to shorten the line length. Happy to return the "the".