Add TestActor, fix some bugs, modify TMhandler