fix tests
Merge pull request #810 from gureedo/patch-1

fix tests