Make test for lenient to cater for difference in exception message on IBM JDK.