Cleaned tests file to correct all pyflakes and pep8 errors

I think this string is too long.