Added test for user defined type.