Cleaned tests file in customs most pep8 and all pyflakes errors