Fix /config & add unit test for it