tests: don't assert in try-catch block