tests for the new while helper

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
use itertools for seconds sum

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>