Continued writing upgrade test class

* also improved get_dbsettings()