Fix tests, improve NoIdMapper's hasOne error message