Added test for exceptions in tryCatch