Testing authorization method.