Add tests for item.write() custom path