Created new branch for authorization
Fixed some problems with tests
modif1