add resume test and util