Fix a bug in MScanById. Add tests for MScanById and MFindById. Rename newModelRefFromInterface to newModelRefFromModel and create a new function called newModelRefFromInterface which actually takes an interface as an argument.