Fix custom types test.