changed auth error handling and tests/fixtures