[test] Added missing test for the spark.readyStateChange event