unit tests for 'delete'