Rewrite tests to use the httptest.Server.
Added a base test module to share code and started work on the identity tests.