Added coverage for invalid inputs.