This sometimes causes test failures in macOS, when tests are ran in different than usual order. This should probably be fixed.