There is a LocalSparkContext in mllib test, which you can use to save `beforeAll` and `afterAll`.