tests,examples: remove unneeded headers, fix style