example user defined type and tests added