Preserve new lines when test fails

In some cases the error message might span on multiple lines.

The `.` in JavaScript regular expressions does not match new lines.

This makes failures more descriptive