tests: fix tearDown issue #3