Basic tests for the Task database layer