test hook on Mac OS