CLN/TST: cleanup exception message testing by replacing with assertRaisesRegexp