raoxunrong, add exception handle and add test to cover this scenarios