Legend rcparams

changed default values + added test.

When you merge this your PR against matplotlib will be updated.