Found a better solution. Just need to call setUpClass of the base class.