convert test scripts to scripts with test functions


git-svn-id: svn+ssh://svn.mystic.cacr.caltech.edu/mystic/mystic@756 968178ea-60bd-409e-af13-df8a517b6005
Merge branch 'master' of https://github.com/uqfoundation/mystic