Update api_tests.py