Refactored profile view testing.