add foreign keys for test_statistic table