Added unit test for -reset function

Hi! 

I noticed the reset function is used in all tests but its own test was missing, so I wrote one based on the README file.