test case for extend function added