added attribute writer test