Update TestingUtil.java

added try/catch