Revert "Revert "(#2577) - add some attachments tests""

This reverts commit 458ccdcce3c1f2477815dbc73a1f56639133f485.