make assertRaises() test for specific exceptions

fixes bug: 1211951

Change-Id: Icf1401cc29e0a9c7fc68089e4c38f278181779be
Merge "make assertRaises() test for specific exceptions"