add test for default type URI
add tests for default and custom URI
fix _attachType for custom URIs