Add tests for custom types.