Added cleanup method to tests.

The tests all fail after the first run because there is no delete function.