testing tabject writable and fixing a bug in it