New test for validating authentication fail and success.
More state machine work.
An extra task will take care of the dispatching, effectively
unlocking the main client, and enabling observers to make api call
to the client without risking a deadlock.