Fix unit tests for quotas

Change-Id: I51359da3ad67f07a9877ea711b9f8575a5b3093b