Make permissions settable from test