Add SmartCredentialsProvider test

An early attempt to more deeply test authentication
and credentials in the plugin.
Merge commit '7be1d4df6676348930fbee52ced9c1113502b88c' into HEAD