Implemented reset
Fixed test