Minor formatting fixes in testing.py