create comprehensive test for median