Test for permissions in github