fix iduri
add test case for iduri
check package existed
add tests case for spm doc