Updated DifferentialParameterRepository callback function to work
correctly. Updated tests to match.