test script stolen from ribiprocessing core.jar from processing.org