adding unit tests for quota checks