Added median test to test_stats.py

Added a test for the median function!