In general, after a stand-alone provisioning package is applied to the device, the package is persisted in the %ProgramData%\Microsoft\Provisioning folder on the device. Provisioning packages can be removed by an administrator by using the Add or remove a provisioning package available under Settings > Accounts > Access work or school.
Now, if you couldn’t login system, you need to restore system to a previous timepoint in WinRE. In fact, since this is a test machine, you could Reset this PC in WinRE to make computer become a clean system, then do what you want to test, this time I believe you know the right way.
Reference:
How provisioning works in Windows 10 (Windows 10) - Configure Windows | Microsoft Learn
https://learn.microsoft.com/en-us/windows/configuration/provisioning-packages/provisioning-how-it-works
-------------------------------------------------------------------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.