Starting to add test for tasks. Slight improvement on database.
Hack in test for windows (issue deleting directories).