SPARK-1170. Fix a test case.