[Tests] Added test for try/catch