JC-1374 Added tests with expectedExceptionMessages