support boolean primitive type
rename and add test for endingclass