add testcase
bugfix for 'FOREIGN KEY reference'