added setting value and moved test