[close #1] resolve two quotas error, add test