Fixes test mocking of os x check