Add stack trace for debug builds
Actually remove the test error