[tests] Fix assumption about recent contacts ordering

Since 1.7.0 the events are ordered by end time, which broke some of the
tests in recentcontactsmodel.