Use a test script to setup tests rather than bash-specific caller

Fixes #74