Added regression test case for SPARK-1194