Do not use null to check if value has been defined
Added setValue method and save test