Added and refactored auth-tests