this.module is defined in tests, better way of checking for node module.