Better initialization for TestCase.analysisCount, add FK for test_outcome.test_outcome_statsPid.