Adding Function object plus test.