fixed issue with test on mac os x