add file writer test assertions