renamed clear to reset
function mocks has reset