Migrate default and uninstall profiles and add tests
This refs affinitic #5689