Fix unit tests that only worked due to a local file