Fixed format strings in tests and examples