examples: update test files.

Commit 9c718e402f76d7fb8c72d13ee43615e72310d92f fixed some undefined
behaviors, thus slightly changing some of the test files.