add tests for PR 21 and assert it is working correctly even without Model->id present