Checks that the tail of the last message received contains the passed string, and throws if it does not.
The expected tail, which may include some replace-tokens.
The file the test is in.
The line the test is on.
Exception if the tail of the last message received does not match the expected string.
Checks that the tail of the last message received contains the passed string, and throws if it does not.