unit testing

The unit test modules should now work in systems where bash is not the
default shell.