Refactored jacobian test.

I saw two big functions which only differed in 3 string parameters, so I refactored.

This should be run by Travis, so don't merge until Travis passes.