adding a test for write_off_node