use ``assert_frame_equal`` to compare the result vs the expected frame. pls add a test if name is passed in ``to_dataframe`` but name is different on the Series.