Add more files test cases for non-directory and non-file resources.
Remove avatar double up.