Added default factory fragment and tests.