test for handling attached files