testcase: improve leaked partitions detection and cleanup
- We should only try to remove leaked partitions if we detected some, otherwise it may produce a strange message "unable to delete leaked partitions". - If some supervisor configuration is still present after partition deletion, they must be removed not to block next test and the current test must be marked failed.