Refactor FakeCredentialStore to common.py.
Add OATH-TOTP test case.