I'm not convinced the comparison to such minimal string output is good enough. Is it possible to construct the Pandas object in this case and check for equality. Failing that is it worth strengthening your comparison by checking the type of object returned by as_series? Perhaps it might be worth checking the dtypes to test the data type is preserved?