fixed assertRaises