added some test for upload avatar