Converts to helpful string in test env

If run in test env, the toString method will return a more helpful error message.
Merge pull request #13 from Springworks/feature/debug-message

Converts to helpful string in test env