Moved redis-publication to messageManager and fixed tests