Tests for the RK authentication flow

Uses a mocked RK object.