Added tests and code style checks for use in Jenkins.