fixing bug for comparing collection(incomplete)
fixing bug for comparing collection
better to convert objects to an array of expected keys is good