restrict search to published profiles and adapt tests