add test code to uploadprofile