Add GetUser overload for keys
Add some unit tests about errors