complete authorization unit tests