checkpoint dir now use local relative path to pass the unit test
creation of accumulator now doesn't depends on Spark context