update attachment test