Correct sys.exit() call in tasklib
Get the 2 basic tests working again

So we can then carry on expanding the tests from here.