fixed error when no configfile exists
updated test