HPCC-9583 Rework the selftests in the std library

For review of the approach