The tets fail to run when i is changed to BeforeClass. I noticed that OpenMRS-Trunk also has used Before in the test classes.