Added testmode to disable plot saving transparently