Implement assertRaises assertions on all tests

Fixes bug 1130302

Change-Id: I284d612a7eec1c7b9a0b10081ac3b8227803c3c9
Merge "Implement assertRaises assertions on all tests"