(PUP-3136) Add detailed exit codes to tests

This commit modifies the existing test to include detailed exit codes on
the `apply_manifest_on` step so that when the test fails errors will be
helpful.