exception is saved and thrown by the end of the test