Adds a DataTypeFactory and tests