add all functions and test case to AI