Merge "Merge very similar code in test_quotas_negative"