Throw exception on spark.akka.frameSize exceeded + Unit tests