Ensure we only modify the read preference during write when not set to RP_PRIMARY
Modified test to use ->once() instead of ->at()
Added public access to getReadPreference for testing purposes