test for valid config