add test for reset()