Modifying test_api.py.