Unit tests for /users/:login . Fixed a bug in getUser