Add unit test to rabbitmq_messager, fix non terminating process error in currentcost_steps.py