write value test