Added authorize test