Add tests for new ProfileManager method.
Add tests + fix profiles migrator.
Stop using package private method.
Merge pull request #147 from greboid/master

Add tests + fix profiles migrator.