Refactored user_profile_page test
Refactored the test