Updated tests with authentication