Testing getToken function for operator part