Fix tests after compacting json