Test authenticate decorator