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

Typo.