Added assertRaises Unit Test.