unit test edited: prevent stubbing methods