I added tests to the median function!

I added a test