allow x:document inside x:expect[@type='custom']