Bugfix on tests for Mac