Fix the compiling warnings in TestRMAppAttemptTransition and the broken
test cases in it and TestClientRMService.