Cleaned tests file to correct all pyflakes and pep8 errors

I feel like you could safely remove this test in this PR without issue if you wanted :)