added 2 function test cases