added first test for foreign and reverse foreign keys