adding function testcases