Median tests

Median tests added