When using Active Record with a View (instead of Table) the primary key is not set in the record after save
This should do what you're looking for:

if ($test_record-&gt;save()) 
{
    // update Member_ID on model (for new record)
    $test_model-&gt;setAttribute('Member_ID', craft()-&gt;db-&gt;getLastInsertId());

    ...
}