add test code for type part