added better stack trace support for tests