added unit test for initializing  before module.run calls