Add unit tests and change create or update quota service method to return the quota