Setup/teardown exception raising was refactored and fixed wrong exception