Add exception handling to defaultTest name creation