Allow to configure write concern and read preference
Fix test error: a granted authority textual representation is required