tests for invalid discount type