Add tests for AI