Testcase for response factory