Modified EventResourceTest so that data needed for the test are created
in the db and then deleted when the tests end.
Modified TaskResourceTest so that data needed for the test are created
in the db and then deleted when the tests end.