added test case for ai

added test case
Merge pull request #333 from psubhashish/patch-10

Added test case for ai