adding reset behavior and test