Fix tests after hapi update