Fixes bug 1110003 - Correctly remove namespace from returned results.

@peterbe r?
Then it should either be in the `tearDown` or in a `finally:` block because if something would ever go wrong in those 41 lines it would leave a dangerous thing dangling after the test is finished (finished failed, that is).