Fixes OSG s3 quota policy evaluation and adds unit test for the helper functions. Fixes EUCA-8856