Adding writer tests