that's the test i wrote: (UPDATED AFTER YOUR SUGGESTIONS)
@isTest private static void testavoidOpportunityOwnerChangeOnOwnerChange()
{
Account accountTest = TestUtil.getAccountByName('AccountTestAvoid');
insert accountTest;
Opportunity testOpp = TestUtil.getOpportunityByNameAndStage('TestOne', 'Customer Confirmed Quote', accountTest.id);
testOpp.type = 'Renewal Business';
insert testOpp;
Account acc = [SELECT Id, Name,OwnerID from Account Where name = 'AccountTestAvoid' limit 1];
Opportunity opp = [SELECT id,name,ownerId from opportunity limit 1];
Profile p = [SELECT Id FROM Profile where name ='system administrator' limit 1];
User usr = TestUtil.getUserByNameAndProfileId('test',p.Id);
insert usr ;
accountTest.ownerId = usr.id;
Test.startTest();
update accountTest;
Test.stopTest();
Account accRes = [SELECT Id, Name,OwnerID from Account Where name = 'AccountTestAvoid' limit 1];
Opportunity oppRes = [SELECT id,name,ownerId from opportunity limit 1];
System.debug('accRes.OwnerId: ' + accRes.OwnerId);
System.debug('acc.OwnerId: ' + acc.OwnerId);
System.debug('oppRes.OwnerId: ' + oppRes.OwnerId);
System.debug('opp.OwnerId: ' + opp.OwnerId);
System.AssertNotEquals(accRes.IdOwnerId,acc.IdOwnerId);
System.AssertNotEquals(oppRes.IdOwnerId,opp.IdOwnerId);
}