Unit tests for qu.writer