added a test code to obtain 'function' information.