Fixed test issues after adding group relationship to the Pid model