fix for java.io.NotSerializableException in distributed tests