add test for try/catch blocks

ref #126