Fix ReferentialIntegerity tests