Testing write register.