wrapped test in try/finally block