Fixed the failing test on mac