Add optional code to DummyIm.request_succeeds() for http api, and factor it into the tests
Add missing semicolons