added more tests for append_if_no_such_line and sed