[PATCH v6 1/3] tests: Add a test with non-trivial control flow.