Added writer test