bug fix batch processing at test time