understand stub and mock of testing