Add median test

Added one test for the median function