Add unit test for parse function-define.