Improved BzlSend::addAttachment and wrote basic test cases.