Try to fix tests, put Spark configuration in static initialization.