Also update test class to use non-deprecated methods from core (such as Config::update). Fix a few code sniffer errors.