The output failed the tests as it was parsed as invalid. Indenting helps with that. This also simplifies things a bit by having a _log_stack function and shows the type of stack we're printing.