testing for empty batch