Fixed bug: When primary key is fk, the fk's index is the primary key.

Added 1 test for it.