Fixed PesterThrow to show correct error messages.

Fixed PesterThrow to show correct error messages and added 2 corresponding unit tests.

I also ran these two files through a filter that removes trailing whitespace and converts expandable strings to literal strings where possible.

The expandable-to-literal string conversion is the reason for most of the changes. If this is a problem let me know.