Add tests for writer backend
Merge branch 'add-writer-tests'