refactor config test