Change DummyApi to accept opts