add some test for spark