Added spec for ValueInFunctionParam
Improved spec with name as a val
specs for ValueInFunctionParamFactorySpec