Wrap test with try-catch