test for treemachine raising ValueError on error results