add test and fix project error