Add tests for deprecate_kwarg

There didn't seem to be a good preexisting place to put this.  It seems like the other bits of `util` should have tests, too.

The `if __name__ == '__main__'` section is cribbed directly from `test_index.py`.