Tests: fixed test for CollectionAPI.