fixed PEP8 violations in tests directory