Adding initial test for class and fixing class-extends.
Adding support to try/catch and tests for this.