SPARK-3415: removed references to SerializingAdapter and rewrote test