test and fix optional configuration getter