Fix permissions for test calls.