Rewrite authsource unit tests as specs.
Merge pull request #532 from opf/feature/rewrite-unit-tests

Rewrite authsource unit tests as specs.