Pass type through to document
Add type to matchers