refine some codes, make test more stable.
add some volatile