Add tests to illustrate segfaults

Under B::H::EOS::XS, ActiveState 5.8.9 segfaults when using threads.
Add tests for each implementation to exercise this.