Fix Foreign Key Parser

Fix Parser to Foreign Key & Add Test Case