Test for error when invalid config is passed