test runner: output fileName&lineNo for `new Error()` exception

also: fixes a bug when a custom exception is thrown. In this case
we try to extract the message with toString() on the custom exception