Update collectionTest.php

add test case 'testReferencesChangedDirectly()'