Fixes to UserSessionProviderTest