Broadcast the Hadoop configuration. Refactor the tests to use rdd.collect()