add test codes for all types.