Cleaned tests file to correct all pyflakes and pep8 errors

Hm, I think this line is too long. Can you break up the string?