Added reset and started tests.
Ha ha.  The diff looks big because I changed the tabs to spaces.
Fixes #1.