implemented batch testing