Fix existing base::task test cases and add a few new ones

Fixes #29