Unit tests for UserKeyGenerator done.