Added another test for InvalidArgumentException thrown by hasParameter().