start working on FunctionIC gradient test (#3312)
Pass gradients though in FunctionIC. Add tests. (#3312)