[N] Add Factory Test Package

[N] Add Factory Test Package, should define FACTORY_ENABLE_MACRO