TST: add some more tests

test for gh-4494
test median returns array scalars and works with object arrays
Merge pull request #4507 from juliantaylor/test-add

TST: add some more tests