Improve cleanup after Swift testing

Use common method to delete objects and containers after Swift
testing. The used method ensures proper deletion before continuing;
simply listing and deleting sometimes raises exeptions due to delayed
executions.

Also fixes a docstring to reflect current behaviour.

Change-Id: Ieaaba496028de741f3e506dac800b151aa833333
4 files changed