make use of assertContainsOnlyInstancesOf

Change-Id: Ifec65ab1266662dde303e8b4b71e8ac0a421c009