add testcase
bugfix for 'FOREIGN KEY reference'
Merge pull request #605 from yakolee/master

bugfix for 'FOREIGN KEY reference'