refresh mock and test