Fix tests for creating tasks, add some more