refine the code of mob core test.