remove deprecation warnings in collection test