TST: fix for testing case on Mac