updated with assertRaises