It should be trivial to do a more thorough (and readable, I think) test by simply condensing all three of these expects into a single expect that does a deep equal test against as JS-literal of the expected message, I think.

I'd expect this to be true for the previous test as well.