Added exception and stack functions to the test module
Merge pull request #11023 from whiteinge/test_exception

Added exception and stack functions to the test module