rearrange test cases
fix undefined dest path bug