Fixed issue with redis channel names, added unit tests for app.write