Improved tests by adding a BeforeClass annotated method.