fix dist tests (thanks Slaven Rezić)