Test editor tokenAtTextPosition method.