side-effecty fn to fix Joi objecte in expect