added test functions for derivatives

the test functions should check the added derivative capability as well
as the added 'grid' keyword