adding tests and code for getting the collection item by named property