Fixes to tests
Added permissions