Fixed erroneous test cases in spark local operations.
Merge pull request #921 from johanstenberg92/local-op-spark-test-fixes

Fixed erroneous test cases in spark local operations.