DDC-2338 Added failing test for composite foreign key persistance

I've added this test regarding ticket DDC-2338