Add assertion to existing test that didn't have one.
Extract document metadata into separate behavior.