Add #reset function and test