Median tests

tests added for median