Not catched error in unittest.