added test case for ai

added test case