changed delete to return void
added cleanup of memory to all tests
Changed delete to return void