adds tests for setting max_batch_size
adds EOFError to lists of exceptions to rescue and retry from