add: config hook for test
infrastructure for test improved