testing di.createInstance + doc