Stub test in stacktrace test