Added a spec that fails when type: Integer and nil is passed

I thought that we precisely wanted to treat the `nil` value the same as a missing value. In which case you should not see an error here, since this is an optional parameter.