Put the testdir and dagdir in 'options' object for simplicity's sake.