Corrected a unit tests for hasMany 'uses one insert into statement'