Fixed spark-rest tests