update tests to handle image atttachments