Rewrite authsource unit tests as specs.

Will be used to fix failing specs in openproject-dtag_authentication.