test for attachment updating