Added test to check that objects are saved with the PIDs with which they are offered