[darwin] fix test on darwin