added deep clone and compare
filled in remove principal id test