add hook for supplying config in test