Fixed bugs in DummyApiResponder to make QUnit tests pass