Fix for setting of ref.
Merge pull request #5 from gstoeckel/master

Fix for setting ref and arguments for test.tree/run.