Add "remove auth access" function
Improve tests