we have a spark application and trying to implement accumulator counters as above. create a scala test calling below application and getting stack overflow error