t/helper: merge test-ref-store into test-tool