Fixed wrong test cases for func macro.