test for reset functionality