refactor tests
refactor #get_value by replacing '||=' with '||'