Test for not sending uncontrolled error or warning

* Creation of a base unittest class, LoggedTestCase, that get all warnings
  and above. We then assert we don't get any. There is a variable to say that
  we expect some and assert on that as well.