add a simple write test.