fix[suite/factory]: return factory as value if factory is not function