fix collection test errors