make test work on mac