[tests] do not fail in core.contract if mock is not installed