prevent DEPRECATION warnings.

rspec-mocks now use stub instead of stub!, and double instead of mock.
add test for loading custom authenticator
Merge branch 'custom_auth_bug'