improved write test
Merge pull request #4 from przytads/master

improved write test