Fix test selection when test object is not the same object but equal