Add tests for new ProfileManager method.
Add tests + fix profiles migrator.