Add tests for projects.
Add some more tests for tasks.
Add tests.
Trim trailing whitespace.