Added support for @Before and @BeforeClass, improved exception handling for test results.