Migrate to cl-lib
Improve the test.
fix wrong regexp (. does not matched to newline)