sec-deriv and tests