Added automated unit tests using JenkinsRule