Improved authentication failure message.
Fixed e2e tests after material integration.