TMDM-7455: "Cannot search FK Record when having FK contains other FK"

Unit test to ensure no future regression on incompatible search.