NEXUS-7614: Added UT for attachment parsing