Added support for signin/signout.
Added test helpers to remove implementation-specific details.