bug in add_fk_to_partitions test