Test write failures