test: test insert and update during authentication failure.