added some tests to fileAppendingEventListener facilitated by proxyquire
minor tweaks to error handling
fixed someone as text causing error when in offline mode