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