add test case 4-7 (need to update error handle)