Minor fixes in tests.
Debugging task management. WIP