Add testSettingInvalidMaxBatchSizeCausesException