Add processing by chunks to mac tests