Spark usage example for test