Add reset-state tests for shares
Change using of config from global