Added hit resetting functionality and more tests.