fixing bug related to mocked response