I added tests to the median function