Add unit tests for cfgupgrade with a real configuration