Fix pep8 violations in some tests
Merge pull request #6112 from edx/zoldak/fix-pep8

Fix pep8 violations in some tests