test case for spark publish

tests the publish function for the spark core