Added reset method for tests