Fix broken test

seriesToken returns a json object, the test was expecting text. Fixed
it.