Tests: Fixed pep8 warnings and intent.