using try-with-resource in TestSIR, suppress unimportant compiler
warnings