Add tests for ReflectionFunction string casting