Utils test patchset

This patchset updates a set of functions and improve in utils_test.py except class GuestSuspend which will include in Qingtang's patch set for guest suspend.