TST : added tests for some validation functions
BUG : validate input on the way into rcparams

Same as `update`, the default behavior of `dict.__init__` does
not call `__setitem__` so we have not been validating values passed
at creation time.

Update the tests to account for the validation.