core/tests/chat_api_tests.rs