Test that injection failures are handled properly in standalone apps.