Test function derivative un DiffTest.cpp.