modify typing test and add some comments