Add test_api.py — gap fixes (IoT, multilingual, federated, tests)

#9