fixing tests by making a regex for stacktrace