Started adding tests for authorization errors