fix tests and move jenkins plugin to v1.499

Fixed the tests by using JenkinsRule, which required a later version of the plugin dependency