testing: fix tests without cleanup in pytest.
It was broken by 89ffac3b01fb3f6749799ac67b7d94056a36778e,
which added "cleanup" method to the base test class,
resulting in reporting cleanup for all of the tests.
(cherry picked from commit bb60d265c9825d71cce84a42f66a435f05a6c5f7)