set appManager to clusterEntity before use
move role related ut to appManager