Median tests

added median test !!!