fix permission in tests (bug 912277)