renamed attachFile to uploadAttachment, attachment methods passing nodeunit tests