added unit tests for GLApiCache