Added new test case.
Fixed problem with private what() in API Exceptions.