add interface to reset history.

add test to check history cannot be changd.