update attachment test to try and reproduce issue #328