added test of median function to test_stats.py
added missing file