Fix & test factory.deep and factory.one
Merge pull request #29 from nickb1080/factory-methods

Fix & test factory.deep and factory.one