RF - streamline Jacobian calculation and add test

I added a test for the Jacobian function, next task: figure out the jacobian of "median" :)