Fix tests mock