Add unit test for collection accessor.