tests/examples: Mark some variables only used within their files as static.