Refactor test config for extensibility