Adding authorization service functionality + test