Fix broken test on references using FK attributes