Fix jenkins script

the `jenkins.sh` hadn't been setup properly.

This configures it correctly to run all tests and fixes up a couple of failing tests.