add some spark test code