Add unit tests for APILimitUtils.

Add unit tests for APILimitUtils and add more information on its Javadoc.