Unit Tests for Median using longs

Unit tests around median for longs, particularly edge cases.