Format backtraces properly

Also add some missing unit tests of Buildpack.

[#53870297]
Merge 53870297- to master

[Completes #53870297]