adding test case for new function