set value of url and title for link field + add test for method