test of reset function