Cleaned tests file to correct all pyflakes and pep8 errors

+1

Also, I believe that all the indentation whitespace gets included here since you've used `"""`'s, which might be undesirable.