Changed the exception test style from "try/catch" to "setException"