exceptions clean up in UI tests