Median tests

I added a median test to test_stats.py.