add reset method for tests