Adding testcase for composer api using mocks