refactored specs a bit more, added specs for if there's a nested tasks