Added tests for ProfileManager