Added unit test for cloneProfile