testing of the updateStateByKey method