adding functional tests for profile page