Fix permissions in tests, at least