batch length test added