Cleaned tests file in base correcting pep8 and pyflakes errors