Cleaned tests file to correct all pyflakes and pep8 errors

I think your "the" => "a" change affects meaning, and I think I like the "the" way better, but I'm happy to merge this anyway since spending time on it seems not super important.