Refactoring quota enforcer spec

* Added sub-contexts to enhance testing of catalog changes
* Added helper functions for readability and less code duplication

[#67082390]