Add testing of configfile and add removal test