added explicit mocking for testing if running on a mac