test: test writing properly