make dist includes test, and make test working on mac os x