added a write test
Merge pull request #3 from przytads/master

added a write test