Added better test for illegal argument exception