Added resetAll method that is used in tests