Add async test for write_metrics method in gates_activity - Implemented a new test to validate the write_metrics functionality, ensuring metrics are correctly recorded for predictions, confidence, and response time. - Utilized mocking to verify interactions with the metrics tracking system.