test invaild config exits as error