Add the recover event, fix the javadoc in RMStateStore and simplify the
test cases.