Bring the "glue" system test up to speed with other system tests: add check numbering, ensure test artifacts are preserved upon failure, improve error reporting, make the test fail upon unexpected errors, address ShellCheck warnings.