create new SparkConf instead of use SparkEnv.get.conf which would throw NPE in test suite.