added some unittest