[PATCH v3 1/6] tests: Add more tests for function definitions.