function isFactory (obj) {
  return typeof obj === 'function' &&
    typeof obj.fn === 'string' &&
    Array.isArray(obj.dependencies)
}
Test whether an object is a factory. This is the case when it has
properties name, dependencies, and a function create.
@param {*} obj
@returns {boolean}