test upload & delete attachment