Fixed try catch statement position + failing test.