added median tests