add failing test for empty array
add support for empty tasks array
0.2.0