Updated testing for .core with Spark API