test for attachment