More tests on TaskManager.