Tests clear exceptions afterwards