Authorization system finished(roughly). Tests already added. Some old tests are refined.