NodeJS test for Spark.io events