Upgrading to core with JenkinsRule and converting unit tests to Junit4