add testcases to coverage some error conditions