Add test case for the profile manager.