Test attachment parsing.