Jenkins fix

Attempting to fix some test errors and compiler warnings in jenkins.