adding full test cover for median_series, adding create_on_bar_algorithm
fixing algorithm name in tests