LUN-670 -- unit test with assertRaises