fixup lib ordering for tests; add enough test to rangexxstored to get it to link the pthread syms