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