Add tests for the form resetting

Signed-off-by: xiaojunwu <xiaojunx.a.wu@intel.com>