rename files variable
fix bug in test
fix bug in reply_email, added tests