Derivative tests and fixes.