I think the test should change from poolSize to maxPoolSize in the execise, correct? Given that the code uses unifiedTopology: true.
poolSize
maxPoolSize
unifiedTopology: true