Integrate legacy tests into CI build