fixed test median