Filter warnings in rcparams test (and others)

These are warnings from matplotlib which should be there so we just filter them. 

Update:
This branch filters various warnings raised in different parts of the test suite. They are all warnings that are genuine and should be raised. We thus only filter them at the stage of the tests to get a clean test output and make it easier to spot real problematic warnings.