fix the test.bash script to work on OSX
any complex object should just use repr()