[FIX] tests: make self.assertRaises() return the expected object