add basic tests for _active_tasks API