updated tests for append_if_no_such_line