Only set defaults when opts.api is not a DummyApi for test_utils.make_im()
Add docs for test_utils