Use 'variant' instead of 'type' and expect