401 responses and tests