added output stuff to test script