prepareUnitTestModule passes options on to editor

We replace the provided `postInit` with this, which has what we require, plus it also calls the `providedPostInit`, if it was, indeed, provided.