implemented setup and teardown for failing tests