Adapted tests for digest. TODO: Test staleness, and basic.
Added tests for basic, nonce- and user-manager. TODO Put them into separate features, for improved readability.
Put tests into separate features.