updated test for collection in place of array