Add testcases for custom types.