Added JUnit rule and expansible base class for tests