Adding test to deriv