Fixed broken tests in test_format.py