Feedback: refactor test_api.py, typos & other nits