Added unit tests for edit-portgroup functionality. Change-Id: If3d80100cdc47eec876452c4fd24878d9d4d0a13