Fixed printing of config; added test