Improving unittests to handle rtmgr http api