Added test for `type` option