So, the user profiles and objects are actually considered "objects which are used to manage your organization" and they can be accessed without any bad consequences of whether or not your test class/method includes the IsTest(SeeAllData=true) annotation
Objects which are accessible in this manner include:
- RecordType
- ApexTrigger
- Organization
- ApexComponent
- ApexClass
- ApexPage
Become a certified Salesforce professional by going for Intellipaat’s Salesforce Certification!