Add test for ValueFactory
Given function in tests