test driven impl of Mapping:

* toFactory() is adding the resolver as first argument if none is given but the method takes one