Fix cleanup of tests

This pull request replaces wrong `teardown` with `cleanup`.