added getMessage to display a prettyprinted message describing the current test when an error occurs