Tests for buggy object creation with preset PK

There is a serious bug causing ConcurrentUpdate be raised
whenever a new model instance is to be saved with the PK
value set in advance. The added test catches the bug.
Fix buggy creation of object with preset PK