tests handler batch