[test][minor] Add a very little improvement for the spark.readyStateChange event test