native writing with tests seems to work