[tests] Fix auth issues and test