Added code to test writing (which fails)